package com.mz.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (OmsGoodsInfo)表实体类
 *
 * @author makejava
 * @since 2023-12-13 13:38:28
 */
@Data
@Accessors(chain = true)
public class OmsGoodsInfo  {

    @TableId( type= IdType.ASSIGN_ID )
    private Long id;
    //商品图
    private String coverUrl;
    private String name;
    //商品编号
    private String sn;
    //分类id
    private Object categoryId;
    //袋鼠医生（固定只有袋鼠医生）
    private String brandName;
    //市场价
    private Integer marketPrice;
    //成本价
    private Integer cost;
    //实际售卖价格
    private Integer actualPrice;
    //浏览量
    private Integer viewCount;
    //购买量
    private Integer buyCount;
    //库存
    private Integer store;
    //排序号
    private Integer sort;

    //是否上架
    private Integer grounding;
    private Date delayTime;

    //是否允许团购
    private Integer allowGroupBuy;

    //团购折扣类型
    private Integer groupBuyDiscountType;

    //团购优惠金额/折扣
    private Integer groupBuyDiscount;

    @TableLogic
    private Integer delFlag;

    private Long createBy;

    @TableField( fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    private Long updateBy;

    @TableField( fill = FieldFill.UPDATE)
    private Date updateTime;


}

